addspriteactiongroup

Adds a sprite action group, sagname, to a ribbon page group in the Twin Activate user interface. addspriteactiongroup is only available in the Twin Activate GUI.

Syntax

addspriteactiongroup(rbnname, rpgname, sagname, saglabel, labeloffset, groupWidth)

Inputs

rbnname
The name of the ribbon page.
Type: string
rpgname
The name of the ribbon page group.
Type: string
sagname
The name of the sprite action group.
Type: string
saglabel
The label of the sprite action group.
Type: string
labeloffset
The offset value of the label.
Type: integer
groupWidth
The width of the action group.
Type: integer

Outputs

uiSpriteActionGroup
The handle to the sprite action group.

Examples

Add the sprite action group to the ribbon page group:
addribbonpagegroup('Test','Indentation');
addspriteactiongroup('Test', 'Indentation', 'TestSG', 'UnIndent',0,80);
movesprite('TestSG', 0, -5);
addspriteaction('TestSG', 'TestActionLabel','TestAction', 'HandleUnIndent', 'UnIndent-80.png','','',true);
function HandleUnIndent()
	disp('UnIndent is handled');
end